#include <rtthread.h>
#include <rthw.h>
#include "S3C44B0X.h"

////////////////////////////////
char thread1_stack[512];
struct rt_thread thread1;
void thread1_entry(void* parameter)
{
   int a=0;
   rt_kprintf("RT-Thread 0.3.0@44B0");
   rt_kprintf("@01@0060MHz ");
   high_light(0);
   while(1)
   {
     a++;
	 rt_kprintf("@05@00count1:%d",a);
	 rt_thread_delay(64);
   }
}


char thread3_stack[512];
struct rt_thread thread3;
void thread3_entry(void* parameter)
{
   int a=0;
   while(1)
   {
     a++;
	 rt_kprintf("@04@00count1:%d",a);
	 rt_thread_delay(128);
   }
}
////////////////////////////////


/* application start function */
int rt_application_init()
{
   	rt_thread_init(&thread1,
		"thread1",
		thread1_entry, RT_NULL,
		&thread1_stack[0], sizeof(thread1_stack),
		10, 10);
	rt_thread_startup(&thread1);

	rt_thread_init(&thread3,
		"thread3",
		thread3_entry, RT_NULL,
		&thread3_stack[0], sizeof(thread3_stack),
		21, 10);
	rt_thread_startup(&thread3);

	return 0;	/* empty */
}

/** @} */
